//
//  MYeJiVC.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/4/14.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import "MYeJiVC.h"

#import "ZhuShouViewController.h"
#import "ShangYeViewController.h"

#import "DCNavTabBarController.h"
#import "AssortViewController.h"
@interface MYeJiVC ()

@end

@implementation MYeJiVC

- (void)viewDidLoad {
    [super viewDidLoad];

  self.title = @"案场业绩";
    
    
    ZhuShouViewController *zhuVC = [[ZhuShouViewController alloc] init];
    zhuVC.title = @"主售房源";
    ShangYeViewController *shangVC = [[ShangYeViewController alloc] init];
    shangVC.title = @"商业房源";
    AssortViewController *assVc = [[AssortViewController alloc] init];
    assVc.title = @"配套房源";
    
    
    NSArray *subViewControllers = @[zhuVC,shangVC,assVc];
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, LL_StatusBarAndNavigationBarHeight, B_WIDTH, 1)];
    [self.view addSubview:view];
    DCNavTabBarController *tabBarVC = [[DCNavTabBarController alloc]initWithSubViewControllers:subViewControllers];
    tabBarVC.view.frame = CGRectMake(0, 64, B_WIDTH, B_HEIGHT - 64);
    [self.view addSubview:tabBarVC.view];
    [self addChildViewController:tabBarVC];


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
